﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using Microsoft.Office.Interop.Excel;
using myWord = Microsoft.Office.Interop.Word;

namespace Tp.Interface {
    [InterfaceType(ComInterfaceType.InterfaceIsDual)]
    [Guid("D6F88E95-8A27-4ae6-B6DE-0542A0FC7039")]
    public interface IExcelInterface {
        [DispId(1)]
        void ExcelCore(Application exApp, Workbook wb, Worksheet sh, int CoreFunctionNumber);

        [DispId(2)]
        bool fnExcelCoreBool(Application exApp, Workbook wb, Worksheet sh, int CoreFunctionNumber, bool cancel);
        
        [DispId(3)]
        void ExcelCore(Application exApp, Workbook wb, Worksheet sh, int CoreFunctionNumber, Range r1);

        [DispId(4)]
        bool fnExcelCoreTarget(Application exApp, Workbook wb, Worksheet sh, Range target, int CoreFunctionNumber, bool cancel);

        [DispId(5)]
        void WordWorker(myWord.Application appWord, myWord.Document mDoc, int CoreFunctionNumber);

    }

    
    
}
